package elephant.servers.consoleserver.command.resource;

import elephant.jdbc.util.DBStat;
import elephant.servers.consoleserver.command.SshdCommand;

/**
 * 
 * @author skydu
 *
 */
public class DBResourceCommand extends SshdCommand{
	//
	//
	public DBResourceCommand(){
		super("db", "database resource");
		addOption("p",false,"show performance info.",this::showPerformanceInfo);
	}
	
	private void showPerformanceInfo(String args){
		println(DBStat.dump());
	}
}
